///###############
//FILE          : SortedListFactory.java
//WRITER        : Lior Zimmerman, liorz06, 066462300
//WRITER        : Ohad Dan, ohad_dan, 036767960
//EXERCISE      : oop ex1 2008
//DESCRIPTION   : this class is the factory class for the sorted list.
//###############
package oop.ex1.sortedStructure;

/**
 * Factory class - generates an instance of sorted list.
 * @param <Key> The key by which the sorting will be made.
 * @param <InfoType> The data that will be held by the sorted structure.
 */
public class SortedListFactory 
<Key extends Comparable<Key>, InfoType extends Keyed<Key> >    
  implements  SortedStructureFactory<Key, InfoType> {
	
	/**
	 * Returns an instance of a sorted structure - 
	 * A sorted list.
	 * @return An instance of a sorted structure - 
	 * A sorted list.
	 */
    public SortedStructure<Key, InfoType> getInstance(){ 
    	return new SortedList<Key,InfoType>();
    }
}